﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace Javavaj.iHunter.Core
{
    public sealed class MessageHeader : IMessage
    {
        public MessageHeader()
        {
        }

        #region IMessage 成员

        public int ChannelHash { get; set; }

        public string Title { get; set; }

        public string Link { get; set; }

        public string Description { get; set; }

        public DateTime PubTime { get; set; }

        public DateTime LastBuildTime { get; set; }

        public DateTime DueTime { get; set; }

        public string Author { get; set; }

        public string Category { get; set; }

        public int Importance { get; set; }

        public bool Repliable { get; set; }

        object IMessage.Content
        {
            get
            {
                throw new NotSupportedException();
            }
            set
            {
                throw new NotSupportedException();
            }
        }

        IList<IFileObject> IMessage.Attachments
        {
            get
            {
                throw new NotSupportedException();
            }
            set
            {
                throw new NotSupportedException();
            }
        }

        string IMessage.ContentType
        {
            get
            {
                throw new NotSupportedException();
            }
            set
            {
                throw new NotSupportedException();
            }
        }

        bool IMessage.ContentIsBinary
        {
            get
            {
                throw new NotSupportedException();
            }
        }

        #endregion

        #region IXmlSerializable 成员

        System.Xml.Schema.XmlSchema IXmlSerializable.GetSchema()
        {
            return null;
        }

        void IXmlSerializable.ReadXml(System.Xml.XmlReader reader)
        {
            throw new NotSupportedException();
        }

        void IXmlSerializable.WriteXml(System.Xml.XmlWriter writer)
        {
            throw new NotSupportedException();
        }

  
        public int Id
        {
            get;
            set;
        }

        public bool Read
        {
            get;
            set;
        }

   
        public int Uid
        {
            get;
            set;
        }

        #endregion

        #region IMessage 成员


        public bool Deleted
        {
            get;
            set;
        }

        public bool Spam
        {
            get;
            set;
        }

        #endregion
    }
}
